package org.apache.jsp.weixin.leader.worker;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public final class scheduling_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

  private static java.util.List _jspx_dependants;

  static {
    _jspx_dependants = new java.util.ArrayList(5);
    _jspx_dependants.add("/taglib.jsp");
    _jspx_dependants.add("/WEB-INF/tld/fmt.tld");
    _jspx_dependants.add("/WEB-INF/tld/fn.tld");
    _jspx_dependants.add("/WEB-INF/tld/c.tld");
    _jspx_dependants.add("/WEB-INF/tld/xw.tld");
  }

  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fif_0026_005ftest;

  private javax.el.ExpressionFactory _el_expressionfactory;
  private org.apache.AnnotationProcessor _jsp_annotationprocessor;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
    _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
  }

  public void _jspDestroy() {
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.release();
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html;charset=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write('\r');
      out.write('\n');
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");

	response.setHeader("progma", "no-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);

      out.write("\r\n");
      out.write("<!DOCTYPE html>\r\n");
      out.write("<head>\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "/weixin/include/head.jsp", out, false);
      out.write("\r\n");
      out.write("<link href=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${weixin}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/css/scheduling.css\" type=\"text/css\" rel=\"stylesheet\">\r\n");
      out.write("</head>\r\n");
      out.write("\r\n");
      out.write("<body>\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "/weixin/include/navihead.jsp" + (("/weixin/include/navihead.jsp").indexOf('?')>0? '&': '?') + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("title", request.getCharacterEncoding())+ "=" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("排班登记", request.getCharacterEncoding()) + "&" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("backUrl", request.getCharacterEncoding())+ "=" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("calendar?date=" + (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.date }", java.lang.String.class, (PageContext)_jspx_page_context, null, false), request.getCharacterEncoding()), out, false);
      out.write("\r\n");
      out.write("<div id=\"content\" class=\"content-yellow\">\r\n");
      out.write("<form id=\"editForm\" role=\"_editForm\" action=\"ajax_scheduling\" data-callback=\"true\" data-validate=\"true\" redirect-url=\"calendar?date=");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.date }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("\">\r\n");
      out.write("\t<input type=\"hidden\" name=\"userid\" value=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${user.id>0 ? user.id : 0 }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("\" />\r\n");
      out.write("\t<input type=\"hidden\" name=\"groupid\" value=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${group.id>0 ? group.id : 0 }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("\" />\r\n");
      out.write("\t<input type=\"hidden\" name=\"leavetime\" value=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.date }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("\" />\r\n");
      out.write("   <ul id=\"formWrap\" class=\"formWrap\">\r\n");
      out.write("   \t  ");
      if (_jspx_meth_c_005fif_005f0(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("   \t  ");
      if (_jspx_meth_c_005fif_005f1(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("      <li class=\"clear\">\r\n");
      out.write("         <label class=\"label-title f16 tr\">日期:</label>\r\n");
      out.write("         <p class=\"js-date des f16 ml10\">");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.date }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("</p>\r\n");
      out.write("      </li>\r\n");
      out.write("      <li class=\"clear\">\r\n");
      out.write("         <label class=\"label-title f16 tr\">排班:</label>\r\n");
      out.write("         <p class=\"des f16 ml10\">\r\n");
      out.write("            <select name=\"timetype\" id=\"timetype\" class=\"time-select\" role=\"_defaultData\" data-defaultValue=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${timetype}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("\">\r\n");
      out.write("               <option value=\"1\">保洁三班</option>\r\n");
      out.write("               <option value=\"2\">保健9:00~18:00</option>\r\n");
      out.write("               <option value=\"3\">保健12:00~21:00</option>\r\n");
      out.write("            </select>\r\n");
      out.write("         </p>\r\n");
      out.write("      </li>\r\n");
      out.write("      <li class=\"clear\" id=\"ishalf\">\r\n");
      out.write("         <label class=\"label-title f16 tr\">时间:</label>\r\n");
      out.write("         <p class=\"des f16 ml10\">\r\n");
      out.write("            <select class=\"time-select\" name=\"ishalf\">\r\n");
      out.write("               <option value=\"1\">全天</option>\r\n");
      out.write("               <option value=\"2\">上午</option>\r\n");
      out.write("               <option value=\"3\">下午</option>\r\n");
      out.write("            </select>\r\n");
      out.write("         </p>\r\n");
      out.write("      </li>\r\n");
      out.write("      <li class=\"clear\">\r\n");
      out.write("         <label class=\"label-title f16 tr\">类型:</label>\r\n");
      out.write("         <p class=\"des f16 ml10\">\r\n");
      out.write("            <label class=\"label-type\" for=\"type-off\">\r\n");
      out.write("               <input id=\"type-off\" type=\"radio\" name=\"leavetype\" ");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${group.id>0?'disabled':''}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write(" value=\"1\"  />请假\r\n");
      out.write("            </label>\r\n");
      out.write("            <label class=\"label-type\" for=\"type-holiday\">\r\n");
      out.write("               <input id=\"type-holiday\" type=\"radio\" name=\"leavetype\" ");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${group.id>0?'disabled':''}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write(" value=\"2\" />休假\r\n");
      out.write("            </label>\r\n");
      out.write("            <label class=\"label-type\" for=\"type-restore\">\r\n");
      out.write("               <input id=\"type-restore\" type=\"radio\" name=\"leavetype\" value=\"3\" checked />上工\r\n");
      out.write("            </label>\r\n");
      out.write("            <label class=\"label-type\" for=\"type-ot\">\r\n");
      out.write("               <input id=\"type-ot\" type=\"radio\" name=\"leavetype\" ");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${group.id>0?'disabled':''}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write(" value=\"4\"  />加班\r\n");
      out.write("            </label>\r\n");
      out.write("         </p>\r\n");
      out.write("       </li>\r\n");
      out.write("       <li>\r\n");
      out.write("         <p id=\"submit\" role=\"_submit\" data-handler=\"on\" class=\"btn btn-yellow mc submit fb\">保存</p>\r\n");
      out.write("       </li> \r\n");
      out.write("   </ul>\r\n");
      out.write("</form>\r\n");
      out.write("</div>\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "/weixin/include/footer.jsp", out, false);
      out.write("\r\n");
      out.write("<script>\r\n");
      out.write("\t$(function(){\r\n");
      out.write("\t\t$(\"input[name=leavetype]\").change(function(){\r\n");
      out.write("\t\t\tif(\"3\" == $(this).val()){\r\n");
      out.write("\t\t\t\t$(\"#ishalf\").show();\r\n");
      out.write("\t\t\t\t// 1天，1周，2周\r\n");
      out.write("\t\t\t\t$(\"#ishalf\").find(\"option[value=2]\").text(\"一周\");\r\n");
      out.write("\t\t\t\t$(\"#ishalf\").find(\"option[value=3]\").text(\"二周\");\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t\telse if(\"4\" == $(this).val()){\r\n");
      out.write("\t\t\t\t$(\"#ishalf\").hide();\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t\telse{\r\n");
      out.write("\t\t\t\t$(\"#ishalf\").show();\r\n");
      out.write("\t\t\t\t// 全天，上午，下午\r\n");
      out.write("\t\t\t\t$(\"#ishalf\").find(\"option[value=2]\").text(\"上午\");\r\n");
      out.write("\t\t\t\t$(\"#ishalf\").find(\"option[value=3]\").text(\"下午\");\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t});\r\n");
      out.write("\t\t$('#type-restore').trigger('change');\r\n");
      out.write("\t});\r\n");
      out.write("</script>\r\n");
      out.write("</body>\r\n");
      out.write("</html>\r\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try { out.clearBuffer(); } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }

  private boolean _jspx_meth_c_005fif_005f0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  c:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f0 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f0.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f0.setParent(null);
    // /weixin/leader/worker/scheduling.jsp(20,6) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f0.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${user.id>0}", java.lang.Boolean.class, (PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f0 = _jspx_th_c_005fif_005f0.doStartTag();
    if (_jspx_eval_c_005fif_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("\r\n");
        out.write("      <li class=\"clear\">\r\n");
        out.write("         <label class=\"label-title f16 tr\">服务师:</label>\r\n");
        out.write("         <p class=\"des f16 ml10\">");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${user.cname }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("</p>\r\n");
        out.write("      </li>\r\n");
        out.write("      ");
        int evalDoAfterBody = _jspx_th_c_005fif_005f0.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f0);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f0);
    return false;
  }

  private boolean _jspx_meth_c_005fif_005f1(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  c:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f1 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f1.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f1.setParent(null);
    // /weixin/leader/worker/scheduling.jsp(26,6) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f1.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${group.id>0}", java.lang.Boolean.class, (PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f1 = _jspx_th_c_005fif_005f1.doStartTag();
    if (_jspx_eval_c_005fif_005f1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("\r\n");
        out.write("      <li class=\"clear\">\r\n");
        out.write("         <label class=\"label-title f16 tr\">服务师组:</label>\r\n");
        out.write("         <p class=\"des f16 ml10\">");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${group.cname }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("</p>\r\n");
        out.write("      </li>\r\n");
        out.write("      ");
        int evalDoAfterBody = _jspx_th_c_005fif_005f1.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f1);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f1);
    return false;
  }
}
